<include file="Public:header"/>
<div class="mainbox" style="width:800px;"><br/>
    <h1>北京化工大学灭火器材配置申报单</h1>

    <form action="{:U('Home/Fire/save')}" method="POST" name="" id="fire-form">
        <table class="l_fire_tab1">
            <tbody>
            <tr>
                <td width="160" style="height:50px;"><span style="color:#F00">*</span>申请人:</td>
                <td width="600" colspan="3">
                    <input type="hidden" name="id"  value="{$info['id']}" />
                    <input type="hidden" name="tab_fire_id"  value="{$info['tab_fire_id']}" />
                    <input type="hidden" name="staff_id"  value="{$info['']}" />
                    <input type="hidden" name="status"  value="{$info['status']}" />
                    <input type="text" autocomplete="off" class="form-control" style="width:530px;" disabled
                           value="{$staff['staff_name']}"</td>
            </tr>

            <tr>
                <td width="160" style="height:50px;"><span style="color:#F00">*</span>申请人工号:</td>
                <td width="600" colspan="3">
                    <input type="text" autocomplete="off" class="form-control" style="width:530px;" disabled
                           value="{$staff['staff_id']}"></td>
            </tr>
            <tr>
                <td width="" style="height:50px;"><span style="color:#F00">*</span>联系电话:</td>
                <td width="" colspan="3">
                    <input type="text" autocomplete="off" class="form-control" style="width:530px;" disabled
                           value="{$staff['staff_tel']}"></td>
            </tr>
            <tr>
                <td width="" style="height:50px;"><span style="color:#F00">*</span>邮箱:</td>
                <td width="" colspan="3">
                    <input type="email" autocomplete="off" class="form-control" style="width:530px;" disabled
                           value="{$staff['staff_email']}"></td>
            </tr>


            <tr>
                <td width="" style="height:50px;"><span style="color:#F00">*</span>个人单位:</td>
                <td width="" colspan="3">
                    <input type="text" autocomplete="off" class="form-control" style="width:530px;" disabled
                           value="{$staff['staff_unit']}"/></td>
            </tr>
            <tr>
                <td width="" style="height:50px;"><span style="color:#F00">*</span>申请单位:</td>
                <td width="" colspan="3">
                    <input type="text" value="{$info['apply_unit']}" autocomplete="off" class="form-control" name="apply_unit" style="width:530px;"/>
                </td>
            </tr>

            <tr>
                <td width="" style="height:50px;"><span style="color:#F00">*</span>配置申请:</td>
                <td width="" colspan="3">
                    <input type="text"  value="{$info['apply_content']}" autocomplete="off" class="form-control" name="apply_content"
                           style="width:530px;"/></td>
            </tr>

            <tr>
                <td width="160"></td>
                <td width="160"></td>
                <td width="120"></td>
                <td width="320"></td>

            </tr>
            <tr>
                <td width=""><span style="color:#F00">*</span>配置类型:</td>
                <td width="" align="left">&nbsp;&nbsp;&nbsp;干粉（kg）:</td>
                <td width=""></td>
                <td width=""></td>

            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">数量（具）:</td>
                <td width="" align="left"><input type="text" value="{$info['powder_amount']}"  autocomplete="off" class="form-control"
                                                 name="powder_amount" style="width:250px;"/></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">配置地点:</td>
                <td width="" align="left"><input type="text" value="{$info['powder_location']}" autocomplete="off" class="form-control"
                                                 name="powder_location" style="width:250px;"/></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">配置时间:</td>
                <td width="" align="left">&nbsp;
                    <input type="text"  value="{$info['powder_configure']|strtotime|date='Y-m-d',###}"  name="powder_configure"
                           onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })"/>
                </td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">维修时间:</td>
                <td width="" align="left">&nbsp;
                    <input type="text"  value="{$info['powder_repair']|strtotime|date='Y-m-d',###}"  name="powder_repair"
                           onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })"/>
                </td>
            </tr>

            <tr>
                <td width=""></td>
                <td width="" align="left">&nbsp;&nbsp;&nbsp;CO₂（kg）:</td>
                <td width=""></td>
                <td width=""></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">数量（具）:</td>
                <td width="" align="left"><input type="text"  value="{$info['carbon_amount']}" autocomplete="off" class="form-control"
                                                 name="carbon_amount" style="width:250px;"/></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">配置地点:</td>
                <td width="" align="left"><input type="text"  value="{$info['carbon_location']}" autocomplete="off" class="form-control"
                                                 name="carbon_location" style="width:250px;"/></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">配置时间:</td>
                <td width="" align="left">&nbsp;
                    <input type="text"  value="{$info['carbon_configure']|strtotime|date='Y-m-d',###}"  name="carbon_configure"
                           onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })"/>
                </td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">维修时间:</td>
                <td width="" align="left">&nbsp;
                    <input type="text"  value="{$info['carbon_repair']|strtotime|date='Y-m-d',###}"  name="carbon_repair"
                           onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })"/>
                </td>
            </tr>

            <tr>
                <td width=""></td>
                <td width="" align="left">&nbsp;&nbsp;&nbsp;灭火毯:</td>
                <td width=""></td>
                <td width=""></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">数量（条）:</td>
                <td width="" align="left"><input type="text"  value="{$info['blanket_amount']}" autocomplete="off" class="form-control"
                                                 name="blanket_amount" style="width:250px;"/></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">配置地点:</td>
                <td width="" align="left"><input type="text"  value="{$info['blanket_location']}" autocomplete="off" class="form-control"
                                                 name="blanket_location" style="width:250px;"/></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">配置时间:</td>
                <td width="" align="left">&nbsp;
                    <input type="text"  value="{$info['blanket_configure']|strtotime|date='Y-m-d',###}"  name="blanket_configure"
                           onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })"/>
                </td>
            </tr>

            <tr>
                <td width=""></td>
                <td width="" align="left">&nbsp;&nbsp;&nbsp;灭火器箱:</td>
                <td width=""></td>
                <td width=""></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">数量（个）:</td>
                <td width="" align="left"><input type="text"  value="{$info['extinguisher_amount']}" autocomplete="off" class="form-control"
                                                 name="extinguisher_amount" style="width:250px;"/></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">配置地点:</td>
                <td width="" align="left"><input type="text" value="{$info['extinguisher_location']}"  autocomplete="off" class="form-control"
                                                 name="extinguisher_location" style="width:250px;"/></td>
            </tr>
            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width="">配置时间:</td>
                <td width="" align="left">&nbsp;
                    <input type="text"  value="{$info['extinguisher_cofigure']|strtotime|date='Y-m-d',###}"  name="extinguisher_cofigure"
                           onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })"/>
                </td>
            </tr>

            <tr>
                <td width=""></td>
                <td width=""></td>
                <td width=""></td>
                <td width=""></td>

            </tr>
            </tbody>
        </table>
        <button type="submit" class="btn btn-info btn-lg" style="margin-left:100px;margin-top:0px;">
            <span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> &nbsp;&nbsp;提交申请&nbsp;&nbsp;&nbsp;
        </button>

        <button type="button" class="btn btn-info btn-lg" style="margin-left:40px;margin-top:0px;"
                onclick="javascript:drift()">
            <span class="glyphicon glyphicon-download" aria-hidden="true"></span> 暂存至草稿箱
        </button>
    </form>
    <br/><br/>

</div>
</div>
</div>

<!-- 2 加载jQuery库，同时加载该库必须在加载bootstrap.min.js之前  -->
<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<!-- 3 加载bootstrap核心 -->
<script src="js/bootstrap.min.js"></script>
<script>
    function drift() {
        $('#fire-form').attr('action',"{:U('Home/Fire/save?drift=1')}");
        $('#fire-form').submit();
    }
</script>
</body>
</html>
